a = input("请输入你的字符串")
b = 0
for i in a :
    print(i)
for i in a :
    if i == "a":
        b += 1
print("字符串中\"a\"一共出现"+str(b)+"次")
